<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.12"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>emp-toolkit: emp-sh2pc</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo-full-doxygen.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">emp-toolkit
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.12 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('md___users_wangxiao_git_emp-toolkit_emp-sh2pc__r_e_a_d_m_e.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">emp-sh2pc </div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><div class="image">
<img src="https://raw.githubusercontent.com/emp-toolkit/emp-readme/master/art/logo-full.jpg" width="300px/"/>
</div>
<h2>Installation</h2>
<ol type="1">
<li>Install prerequisites using instructions <a href="https://github.com/emp-toolkit/emp-readme">here</a>.</li>
<li>Install <a href="https://github.com/emp-toolkit/emp-tool">emp-tool</a>.</li>
<li>Install <a href="https://github.com/emp-toolkit/emp-ot">emp-ot</a>.</li>
<li>git clone <a href="https://github.com/emp-toolkit/emp-sh2pc.git">https://github.com/emp-toolkit/emp-sh2pc.git</a></li>
<li>cd emp-sh2pc &amp;&amp; cmake . &amp;&amp; sudo make install</li>
</ol>
<h2>Test</h2>
<ul>
<li><p class="startli">If you want to test the code in local machine, type</p>
<p class="startli"><code>./run ./bin/[binaries] 12345 [more opts]</code></p>
</li>
<li><p class="startli">IF you want to test the code over two machine, type</p>
<p class="startli"><code>./bin/[binaries] 1 12345 [more opts]</code> on one machine and</p>
<p class="startli"><code>./bin/[binaries] 2 12345 [more opts]</code> on the other.</p>
<p class="startli">IP address is hardcoded in the test files. Please replace SERVER_IP variable to the real ip.</p>
</li>
<li><p class="startli">example_semi_honest should run as <code>./bin/example_semi_honest 1 12345 123 &amp; ./bin/example_semi_honest 2 12345 124</code></p>
<p class="startli">because different parrties needs different numbers</p>
</li>
</ul>
<h3>Question</h3>
<p>Please send email to <a href="#" onclick="location.href='mai'+'lto:'+'wan'+'gx'+'iao'+'@c'+'s.u'+'md'+'.ed'+'u'; return false;">wangx<span style="display: none;">.nosp@m.</span>iao@<span style="display: none;">.nosp@m.</span>cs.um<span style="display: none;">.nosp@m.</span>d.ed<span style="display: none;">.nosp@m.</span>u</a> </p>
</div></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.12 </li>
  </ul>
</div>
</body>
</html>
